package Demo07.duotaiPractice;

public class Demo01 {
    public static void main(String[] args) {
        Hero garen = new Hero();
        garen.name = "盖伦";
        ADHero h = new ADHero();
        h.name = "寒冰";
        APHero g = new APHero();
        g.name = "光辉";
        ADAPHero w = new ADAPHero();
        w.name = "武器";
        garen.kill(h);
        garen.kill(g);
        garen.kill(w);
        Hero s = new ADHero();
        s.battleWin();//hero battle win

    }
}
